<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'eo-form',
	'enableAjaxValidation'=>false,
        'method'=>'post',
	//'type'=>'horizontal',
	//'htmlOptions'=>array(
	//	'enctype'=>'multipart/form-data'
	//	)
)); ?>
    
        <br>

	<p class="help-block">Fields with <span class="required">*</span> are required.</p>
        
        <br>
        
	<?php echo $form->errorSummary($model); ?>
        
        <?php echo $form->textFieldRow($model,'nombre',array('class'=>'span5','maxlength'=>45)); ?>

	<?php echo $form->textFieldRow($model,'numero_eo',array('class'=>'span5','maxlength'=>25)); ?>

	<?php echo $form->textFieldRow($model,'monto_usd',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'tasa',array('class'=>'span5')); ?>

	<?php echo $form->textFieldRow($model,'monto_bsf',array('class'=>'span5')); ?>
        
        <label class="control-label"><?php echo $form->labelEx($model,'fecha_deadline'); ?> </label>
        
        <div class="controls">
        <?php $form->widget('zii.widgets.jui.CJuiDatePicker',
                array(
                    'model'=>$model,
                    'name'=>'datepicker',
                    'attribute'=>'fecha_deadline',
                    'value'=>$model->fecha_deadline,
                    'options'=>array(
                        'showAnim'=>'clip',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
                        'dateFormat'=>'dd/mm/yy',
                        'showButtonPanel'=>true,
                        'changeYear'=>'true',
                        'changeMonth'=>'true',
                        ),
                    'htmlOptions'=>array(
                    'style'=>'height:40px;', 'class'=>'span3',
                    ),
            ));
            ?>
        </div>

	<?php echo $form->textAreaRow($model,'descripcion',array('rows'=>6, 'cols'=>50,'maxlength'=>300, 'class'=>'span8')); ?>
	

	<?php //echo $form->textFieldRow($model,'Customer_id',array('class'=>'span5')); ?>
        <?php echo $form->dropDownListRow($model,'Customer_id',$model->customer('all'),array('prompt'=>'Seleccione una Opción')); ?>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
                        'icon'=>'ok white',
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
